/**
 * 或门(基于内置Nand门构建)
 */
export const OrHDL = {
    model: "Or",
    ins: [{
        name: "a",
        next: ["a1", "a2"]
    }, {
        name: "b",
        next: ["b1", "b2"]
    }],
    outs: [{
        name: "out",
        prev: "w21"
    }],
    wires: [
        "a1", "a2", "b1", "b2", 
        "w11", "w12", "w21"
    ],
    units: [{
        builtin: true,
        require: "Nand",
        binding: [["a", "a1"], ["b", "a2"], ["out", "w11"]]
    },{
        builtin: true,
        require: "Nand",
        binding: [["a", "b1"], ["b", "b2"], ["out", "w12"]]
    },{
        builtin: true,
        require: "Nand",
        binding: [["a", "w11"], ["b", "w12"], ["out", "w21"]]
    }]
};
